package com.bei_en.teacher.admin.model.questions.vo;
import java.util.*;

import com.bei_en.teacher.admin.model.questions.bean.Questions;
import com.bei_en.teacher.admin.model.questions.bean.QuestionsType;
import com.bei_en.teacher.admin.model.BaseVo;

import javax.validation.constraints.*;

import org.hibernate.validator.constraints.*;

import java.math.BigDecimal;
/**
 * 用于前端页面数据传递
 * 
 * @author Guocg
 * @date 2016-8-15 23:28:11
 */
public class QuestionsVo extends BaseVo {
    private Questions questions;
    private String[] imageArray;
    
    public String[] getImageArray() {
		return imageArray;
	}
	public void setImageArray(String[] imageArray) {
		this.imageArray = imageArray;
	}
	public QuestionsType getQuestionsType() {
		return questions.getQuestionsType();
	}
	public void setQuestionsType(QuestionsType questionsType) {
		this.questions.setQuestionsType(questionsType);
	}
    
    
    public String getImage() {
  		return questions.getImage();
  	}
  	public void setImage(String image) {
  		this.questions.setImage(image);
  	}
  	public String getImage2() {
  		return questions.getImage2();
  	}
  	public void setImage2(String image2) {
  		this.questions.setImage2(image2);
  	}
    public QuestionsType getSubdivisionPoint() {
        return questions.getSubdivisionPoint();
    }
    public Integer getType2() {
        return questions.getType2();
    }
    public void setType2(Integer type2) {
        this.questions.setType2(type2);
    }
    public void setSubdivisionPoint(QuestionsType subdivisionPoint) {
        this.questions.setSubdivisionPoint(subdivisionPoint);;
    }
    public String getYear() {
        return questions.getYear();
    }
    public void setYear(String year) {
        this.questions.setYear(year);
    }
    public String getAnswers() {
        return questions.getAnswers();
    }
    public void setAnswers(String answers) {
        questions.setAnswers(answers);;
    }
    public String getAnalysis() {
        return questions.getAnalysis();
    }
    public void setAnalysis(String analysis) {
        questions.setAnalysis(analysis);
    }
    public QuestionsType getChapter() {
        return questions.getChapter();
    }
    public void setChapter(QuestionsType chapter) {
        this.questions .setChapter(chapter);
    }
    public QuestionsType getSection() {
        return questions.getSection();
    }
    public void setSection(QuestionsType section) {
        this.questions.setSection(section);
    }
    public QuestionsType getSpot() {
        return questions.getSpot();
    }
    public void setSpot(QuestionsType spot) {
        this.questions.setSpot(spot);
    }
    
    
    public QuestionsVo() {
    this.questions = new Questions();
    }
    public QuestionsVo(Questions questions) {
    this.questions = questions;
    }
    
    public Questions getQuestions() {
    return this.questions;
    }
    
    public void setQuestions(Questions questions) {
    this.questions=questions;
    }
        public Integer getId() {
            return this.questions.getId();
        }
        public void setId(Integer id) {
            this.questions.setId(id);
        }
        
        
        public void setTitle(String value) {
    	this.questions.setTitle(value);
        }
    @Length(max=255)
    public String getTitle() {
        return this.questions.getTitle();
    }
        
        public void setType(Integer value) {
    	this.questions.setType(value);
        }
    
    public Integer getType() {
        return this.questions.getType();
    }
        
        public void setQuestionsTypeId(Integer value) {
    	this.questions.setQuestionsTypeId(value);
        }
    
    public Integer getQuestionsTypeId() {
        return this.questions.getQuestionsTypeId();
    }
        
        public void setAnswer(String value) {
    	this.questions.setAnswer(value);
        }
    @Length(max=255)
    public String getAnswer() {
        return this.questions.getAnswer();
    }
        
        public void setFraction(Double value) {
    	this.questions.setFraction(value);
        }
    
    public Double getFraction() {
        return this.questions.getFraction();
    }
        
        public void setContent(String value) {
    	this.questions.setContent(value);
        }
    @Length(max=65535)
    public String getContent() {
        return this.questions.getContent();
    }
        
        public void setMakeTime(Integer value) {
    	this.questions.setMakeTime(value);
        }
    
    public Integer getMakeTime() {
        return this.questions.getMakeTime();
    }
        
        public void setYesNum(Integer value) {
    	this.questions.setYesNum(value);
        }
    
    public Integer getYesNum() {
        return this.questions.getYesNum();
    }
        
        public void setErrorNum(Integer value) {
    	this.questions.setErrorNum(value);
        }
    
    public Integer getErrorNum() {
        return this.questions.getErrorNum();
    }
        
        public void setMakeNum(Integer value) {
    	this.questions.setMakeNum(value);
        }
    
    public Integer getMakeNum() {
        return this.questions.getMakeNum();
    }
        
        public void setWeight(Integer value) {
    	this.questions.setWeight(value);
        }
    
    public Integer getWeight() {
        return this.questions.getWeight();
    }
        
    public void setCreateTime(Date value) {
        this.questions.setCreateTime(value!=null ? (int) (value.getTime()/1000) : 0);
    }
     public Date getCreateTime() {
         Integer time=this.questions.getCreateTime();
         if (time!=null&&time!=0)
            return new Date(Long.valueOf(time)*1000);
        else
            return null;
        }
    
}